# -*- coding: UTF-8 -*-

class Specialty:
    id = ""
    parent_id = ""
    name = ""
    url = ""
    summary = ""
    content = ""
    pic = ""

    def getDescription(self):
        return ",".join("{}={}".format(key, getattr(self, key)) for key in self.__dict__.keys())

    def __str__(self):
        return "{}->({})".format(self.__class__.__name__, self.getDescription())